// 一些缓存的数据，使访问更加快
const cache = {
  info: {
    swipers: [],
    indexBusinessLists: []
  },
  methods: {
    // 缓存首页轮播图
    cacheSwipers (state, arr) {
      state.swipers = arr
    },
    // 缓存首页推荐商家
    cacheIndexBusinessLists (state, arr) {
      state.indexBusinessLists = arr
    }
  }
}

export default cache
